﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManagerRole.aspx.cs" Inherits="sysadmin_RoleManager_ManagerRole" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
</head>
<body class="bodymain">
<script language="javascript">
function returnmsg()
{
    var v_msg=<%=GetLanageValueByKey("ManagerRole_gv_lnk_o2", PowerCreator.LMS.Language.LanagetItemType.Page)%>
}



</script>
    <form id="form1" runat="server" >
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="btnbg">
            <tr>
                <td>
                    <asp:Button ID="btn_Add" runat="server" Text="角色创建" CssClass="inputBotton2" OnClick="btn_Add_Click" />
                    <asp:Label ID="lbl_msg_managerrole" runat="server" Text="" ForeColor="red"></asp:Label></td>
            </tr>
        </table>
        <asp:Repeater ID="rptRole" runat="server" OnItemCommand="rptRole_ItemCommand" 
            onitemdatabound="rptRole_ItemDataBound">
            <HeaderTemplate>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <th>
                            <%=GetLanageValueByKey("ManagerRole_gv_c1", PowerCreator.LMS.Language.LanagetItemType.Page)%></th>
                        <th>
                            <%=GetLanageValueByKey("ManagerRole_gv_c2", PowerCreator.LMS.Language.LanagetItemType.Page)%></th>
                        <th>
                            <%=GetLanageValueByKey("ManagerRole_gv_c3", PowerCreator.LMS.Language.LanagetItemType.Page)%></th>
                        <th>
                            <%=GetLanageValueByKey("ManagerRole_gv_c4", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%#Eval("RoleName")%>
                        &nbsp;
                    </td>
                    <td>
                        <%#Eval("SortRoleDescription")%>
                        &nbsp;</td>
                    <td>
                        <%#Eval("RoleCreateTime")%>
                        &nbsp;</td>
                    <td>
                        <asp:LinkButton ID="lnkbtn_editor" runat="server" CommandName="leditor" CommandArgument='<%#Eval("RoleID")%>'><%=GetLanageValueByKey("ManagerRole_gv_lnk_o1", PowerCreator.LMS.Language.LanagetItemType.Page)%></asp:LinkButton>
                        <asp:LinkButton ID="lnkbtn_del" runat="server" CommandName="ldel" CommandArgument='<%#Eval("RoleID")%>'> <%=GetLanageValueByKey("ManagerRole_gv_lnk_o2", PowerCreator.LMS.Language.LanagetItemType.Page)%></asp:LinkButton>
                        <asp:LinkButton ID="lnkbtn_editoraction" runat="server" CommandName="editoaction"
                            CommandArgument='<%#Eval("RoleID")%>'><%=GetLanageValueByKey("ManagerRole_gv_lnk_o3", PowerCreator.LMS.Language.LanagetItemType.Page)%></asp:LinkButton>
                            <asp:LinkButton ID="lnkbtn_roleuser" runat="server" CommandName="lroleuser"
                            CommandArgument='<%#Eval("RoleID")%>'><%=GetLanageValueByKey("ManagerRole_gv_lnk_o4", PowerCreator.LMS.Language.LanagetItemType.Page)%></asp:LinkButton>
                            <asp:LinkButton ID="lnkbtn_user" runat="server" CommandName="luser"
                            CommandArgument='<%#Eval("RoleID")%>'><%=GetLanageValueByKey("ManagerRole_gv_lnk_o5", PowerCreator.LMS.Language.LanagetItemType.Page)%></asp:LinkButton>
                        </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <br />
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td align="center" style="height: 18px">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                        ShowCustomInfoSection="Left" Width="100%" meta:resourceKey="AspNetPager1" Style="font-size: 14px"
                        InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                        FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
